package com.wlyuan.open.dto;

import com.wlyuan.open.OpenBaseSyncDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author yuanzheng
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class OpenDriverSyncDTO extends OpenBaseSyncDTO implements Serializable {

    private static final long serialVersionUID = -1244621720252963814L;
    private Long driverId;

    @ApiModelProperty(value = "名称")
    private String name;

    @Range(min = 1, max = 2, message = "性别可选择1男 2女")
    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "联系电话")
    private String mobile;

    @ApiModelProperty(value = "出生日期")
    private LocalDate birthday;

    @ApiModelProperty(value = "驾照日期")
    private LocalDate driverLicenseDate;

    @Range(min = 1, max = 3, message = "驾驶证类型不存在")
    @ApiModelProperty(value = "驾驶证类型")
    private Integer driverLicenseType;

    @ApiModelProperty(value = "驾驶证号")
    private String driverLicenseNo;

    @ApiModelProperty(value = "头像")
    private String faceIcon;

    @ApiModelProperty(value = "司机类别")
    private Integer driverType;

    @ApiModelProperty(value = "状态")
    private Integer status;

    private LocalDateTime createAt;
    private LocalDateTime updateAt;
    private Long createBy;
    private Long updateBy;

}
